package com.mall.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Api(tags = "文章")
@Data
public class Article extends BaseEntity{

    private Integer articleId;

    @ApiModelProperty("图片")
    private String articlePic;

    @NotBlank
    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("简述")
    private String shortDesc;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("浏览量")
    private Integer pageView;
}